﻿<%@ Page Language="C#" MasterPageFile="~/major/590202/MajorPage.master" AutoEventWireup="true" CodeFile="ResourceShow.aspx.cs" Inherits="major_590202_ResourceShow" Title="资料详情" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="pathbar">
<div class="left">当前位置：专业资源库--资源详情</div> 
                          <div class="right">
                          <form action="#">资源检索：				
						  <input name="keyword" type="text" size="20" onmouseover="this.focus();" onfocus="this.select();" />			
				          <select name="">
				          <option value="1" selected="selected">关键词</option>
				          <option value="2">资源名称</option>
				          </select>
			              <input type="submit" value="检索"/>
			              </form>
			              </div>
</div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Jxzy_Database %>"
        SelectCommand="SELECT [Resource_ID], [Resource_Type], Replace([Resource_TypeName],'应用电子技术->','') [Resource_TypeName], [Resource_MajorID], [Resource_Name], [Resource_Redirect], [Resource_KeyWord], [Resource_PreView], [Resource_Describe], [Resource_Editor], [Resource_Publish], [Resource_EditDate], [Resource_AddDate], [Resource_From], [Resource_UserID], [Resource_Size], [Resource_Visit] FROM [zyk_Resources] WHERE ([Resource_ID] = @Resource_ID)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="Resource_ID" QueryStringField="rsid"
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
<div id="parameter">

		<div id="lastnews">
		  <h3 class="lastnews"><span>最新新闻</span></h3> 
			<ul>
				<%Response.Write(getData.getList("590202", 1,1, 0, 10, 10)); %>
			</ul>
		</div>
		<div id="hotnews">
			<h3 class="hotnews"><span>热门新闻</span></h3> 
			<ul>
			    <%Response.Write(getData.getList("590202",1,2,0,10,10,"myclick")); %>
			</ul>
			
        </div>
		<div id="ltongji">
			<h3 class="tongji"><span>资源统计</span></h3>
			<ul>
				<li>当前专业资源数:<span>65604</span></li><li>今日上传数:<span>65</span></li><li>本周上传数:<span>654</span></li><li>本月上传数:<span>6604</span></li></ul>     
	        
		</div>
	</div>
	
	<div id="mainsupport">	
		<div class="listbar">		
	<div class="left">资源基本属性</div>	
	</div>

	<div id="content">
        <asp:FormView ID="FormView1" runat="server" Width="100%" DataSourceID="SqlDataSource1" align="center">
            <ItemTemplate>
                <table width="100%">
                    <tr>
                        <th >
                            资源名称：</th>
                        <td >
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("Resource_Name") %>'></asp:Label></td>
                        <td rowspan="7">
                            <asp:Image ID="Image1" runat="server" Height="134px" ImageUrl='<%# Eval("Resource_PreView") %>'
                                Width="200px" ToolTip="图片预览" /></td>
                    </tr>
                    <tr>
                        <th>
                            关键字：</th>
                        <td>
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("Resource_KeyWord") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <th>
                            资源类型：</th>
                        <td>
                            <asp:Label ID="Label8" runat="server" Text='<%# Eval("Resource_TypeName") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <th>
                            作者：</th>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("Resource_Editor") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <th>
                            上传时间：</th>
                        <td>
                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Resource_AddDate", "{0:d}") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <th>
                            资源大小：</th>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("Resource_Size") %>'></asp:Label></td>
                    </tr>
                    <tr>
                        <th>
                            下载次数：</th>
                        <td>
                            <asp:Label ID="Label7" runat="server" Text='<%# Eval("Resource_Visit") %>'></asp:Label></td>
                    </tr>
                                        <tr>
                        <th>
                            下载地址：</th>
                         <td colspan="3">
                            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="#">点击下载</asp:HyperLink></td>
                    </tr>
                    <tr>
                        <th colspan="3" style="height: 16px">
                            资源描述：</th>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("Resource_Describe") %>'></asp:Label></td>
                    </tr>

                </table>
            </ItemTemplate>
        </asp:FormView> &nbsp;
	 
	 	 </div>
	 	 </div>
</asp:Content>

